import request from '@/utils/request'

// 查询合同签订列表
export function listHrmContract(query) {
  return request({
    url: '/back/contract/list',
    method: 'get',
    params: query
  })
}


export function contractList(query) {
  return request({
    url: '/back/contract/contractList',
    method: 'get',
    params: query
  })
}

// 查询合同签订详细
export function getHrmContract(id) {
  return request({
    url: '/back/contract/' + id,
    method: 'get'
  })
}

// 新增合同签订
export function addHrmContract(data) {
  return request({
    url: '/back/contract',
    method: 'post',
    data: data
  })
}

// 修改合同签订
export function updateHrmContract(data) {
  return request({
    url: '/back/contract',
    method: 'put',
    data: data
  })
}

// 删除合同签订
export function delHrmContract(id) {
  return request({
    url: '/back/contract/' + id,
    method: 'delete'
  })
}
